<#-- @ftlvariable name="entity" type="com.xci.platform.auth.entity.SequenceEntity" -->
<#include "/_inc/_layout.ftl">
<#assign url=html.saveUrls("/auth/sequence/create-save","/auth/sequence/edit-save")/>
<@header/>
<div class="jxpanel winpanel" data-fit="true">
    <form id="editform" class="jxform" method="post" action="${url}">
        <input name="id" value="${entity.id!}" type="hidden">
        <table class="table jxtable-form">
            <tr>
                <th class="w-100px">编码</th>
                <td>
                    <input class="form-control" name="code" value="${entity.code!}" maxlength="80" data-options="{alwaysShow:true}" data-validate="required: [true,'请输入序列编码'],maxlength: 80" autocomplete="off" />
                </td>
            </tr>
            <tr>
                <th>名称</th>
                <td>
                    <input class="form-control" name="name" value="${entity.name!}" maxlength="80" data-options="{alwaysShow:true}" data-validate="required: [true,'请输入序列名称'],maxlength: 80" autocomplete="off" />
                </td>
            </tr>
            <tr>
                <th>开始于</th>
                <td>
                    <input class="form-control jxnumber" name="seqStart" type="number" maxlength="9" max="999999999" data-validate="required: [true,'请输入序列开始值'],maxlength: 9"
                           data-min="0" data-max="999999999" data-decimals="0" data-step="1" value="${entity.seqStart!}" autocomplete="off"/>
                </td>
            </tr>
            <tr>
                <th>增量</th>
                <td>
                    <input class="form-control jxnumber" name="seqStep" type="number" max="99999999" data-validate="required: [true,'请输入序列增量'],maxlength: 8"
                           data-min="1" data-max="99999999" data-decimals="0" data-step="1" value="${entity.seqStep!}" autocomplete="off"/>
                </td>
            </tr>
            <tr>
                <th>模板</th>
                <td>
                    <textarea class="form-control" name="tpl" maxlength="1000" rows="2" style="resize: none">${entity.tpl!}</textarea>
                </td>
            </tr>
            <tr>
                <th>备注</th>
                <td>
                    <textarea class="form-control" name="remark" maxlength="1000" rows="2" style="resize: none">${entity.remark!}</textarea>
                </td>
            </tr>
        </table>
    </form>
    <div class="panel-footer text-right">
        <@html.editPanelFooter/>
    </div>
</div>
<@footer>
    <script>
        jx.auth.bindEditFormSuccess();
    </script>
</@footer>